

'use strict';

var _kit = require('kit/kit.js');

var _user = {
  checkLogin  : function(resolve,reject){
    _kit.request({
      url     : _kit.getServerUrl('/user/get_user_info.do'),
      method  : 'POST',
      success :resolve,
      error   : reject
    });
  },
  logout      : function(resolve,reject){
    _kit.request({
      url     : _kit.getServerUrl('/user/logout.do'),
      method  : 'POST',
      success : resolve,
      error   : reject
    });
  }
};

module.exports = _user;
